//
//  BusExViewController.m
//  Bus_iPhone
//
//  Created by 修勇 黄 on 12-7-21.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "BusExViewController.h"


@implementation UIViewController(busEx)


-(void)setCustomNavigationReturnItem{
    
    UIImage *backImg=[UIImage imageNamed:@"header_icon_return.png"];
    UIButton *btn=[UIButton buttonWithType:UIButtonTypeCustom];
    [btn addTarget:self action:@selector(back) forControlEvents:UIControlEventTouchUpInside];
    [btn setImage:backImg forState:UIControlStateNormal];
    btn.frame=CGRectMake(0.0f, 5.0f, 50.0f, 33.0f);
    UIBarButtonItem *item=[[UIBarButtonItem alloc]initWithCustomView:btn];
    self.navigationItem.leftBarButtonItem=item;
    [item release];
}

-(void)back{
    
    [self.navigationController popViewControllerAnimated:YES];
}
@end
